package com.swim.pay.service;

import com.alipay.api.AlipayApiException;
import com.swim.pay.bean.AliPayBean;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author sampson
 * @Description AliPayService
 * @Date 21-8-16 下午3:20
 * @Version 1.0
 */
public interface AliPayService {
	
    /**
     * 支付宝h5发起支付
     * @param aliPayBean
     * @return
     */
    String aliPayH5Order(AliPayBean aliPayBean) throws AlipayApiException;

    /**
     * 支付宝订单查询
     * @param outTradeNo
     * @return
     */
    String aliPayOrderQuery(String outTradeNo) throws AlipayApiException;

    /**
     * 支付宝同步回调通知接口
     * @param request
     * @return
     */
    String aliPayReturnUrl(HttpServletRequest request);

    /**
     * 支付宝异步回调通知接口
     * @param request
     * @return
     */
    String aliPayNotifyUrl(HttpServletRequest request);

}